﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JustPlus
{
    public class Channel
    {
        //cate=0,1,2表示公共频段，DJ频段和私人频段
        public int cate { get; set; }
        public int channelNo { get; set; }
        public string channelName { get; set; }
        public Channel(int cate, int channelNo, string channelName)
        {
            this.cate = cate;
            this.channelNo = channelNo;
            this.channelName = channelName;
        }
    }

    public class ChannelList
    {
        public List<Channel> ChannelLists;
        //存储各个频段的频道数量
        public List<int> ChannelCounts = new List<int> { 26, 3, 2 };
        public ChannelList()
        {
            ChannelLists = new List<Channel>();
            ChannelLists.Add(new Channel(0, 61, "新歌"));
            ChannelLists.Add(new Channel(0, 1, "华语"));
            ChannelLists.Add(new Channel(0, 2, "欧美"));
            ChannelLists.Add(new Channel(0, 3, "七零"));
            ChannelLists.Add(new Channel(0, 4, "八零"));
            ChannelLists.Add(new Channel(0, 5, "九零"));
            ChannelLists.Add(new Channel(0, 6, "粤语"));
            ChannelLists.Add(new Channel(0, 7, "摇滚"));
            ChannelLists.Add(new Channel(0, 8, "民谣"));
            ChannelLists.Add(new Channel(0, 9, "轻音乐"));
            ChannelLists.Add(new Channel(0, 10, "电影原声"));
            ChannelLists.Add(new Channel(0, 13, "爵士"));
            ChannelLists.Add(new Channel(0, 14, "电子"));
            ChannelLists.Add(new Channel(0, 15, "说唱"));
            ChannelLists.Add(new Channel(0, 16, "R&B"));
            ChannelLists.Add(new Channel(0, 17, "日语"));
            ChannelLists.Add(new Channel(0, 18, "韩语"));
            ChannelLists.Add(new Channel(0, 20, "女声"));
            ChannelLists.Add(new Channel(0, 22, "法语"));
            ChannelLists.Add(new Channel(0, 26, "豆瓣音乐人"));
            ChannelLists.Add(new Channel(0, 27, "古典"));
            ChannelLists.Add(new Channel(0, 28, "动漫"));
            //ChannelLists.Add(new Channel(0, 64, "情书"));
            ChannelLists.Add(new Channel(0, 32, "雀巢咖啡"));
            ChannelLists.Add(new Channel(0, 52, "乐混翻唱"));
            ChannelLists.Add(new Channel(0, 58, "路虎揽胜运动"));
            ChannelLists.Add(new Channel(0, 63, "凤飞飞"));

            //DJ标识：pid=l+ChannelNo
            ChannelLists.Add(new Channel(1, 1, "谁的成名曲"));
            ChannelLists.Add(new Channel(1, 2, "磁带断了"));
            ChannelLists.Add(new Channel(1, 3, "Facelook"));

            ChannelLists.Add(new Channel(2, 0, "猜你喜欢"));
            ChannelLists.Add(new Channel(2, -3, "曾经喜欢"));
        }
    }
}
